package com.cloudfun.campusshare.common.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

/**
 * Created by Huqin on 2020/1/6
 */
@Data
@Builder

@ApiModel(value = "设备查询DTO")
public class DeviceQueryDTO {

    @ApiModelProperty("搜索关键字")
    private String value;

    @ApiModelProperty("商家id")
    private String userId;

    @ApiModelProperty("项目id")
    private String projectId;

    @ApiModelProperty("是否上线 ")
    private Boolean online;

    public DeviceQueryDTO() {
    }

    public DeviceQueryDTO(String value, String userId) {
        this.value = value;
        this.userId = userId;
    }

    public DeviceQueryDTO(String value, String userId, String projectId, Boolean online) {
        this.value = value;
        this.userId = userId;
        this.projectId = projectId;
        this.online = online;
    }
}
